import Vue from 'vue'
import Vuex from 'vuex'
import VuexPersistence from 'vuex-persist';

Vue.use(Vuex)
const vuexLocal = new VuexPersistence({
	storage: window.sessionStorage
})
export default new Vuex.Store({
  state: {
    token:{},
		userInfo:{},
		tagsList: [],
		collapse: false,
		msgCount: 0
  },
  plugins: [vuexLocal.plugin],
  mutations: {
    changeValue(state, obj) {
			state[obj.name] = obj.value;
		},
  },
  actions: {
  },
  modules: {
  }
})
